import { TableOptions } from "@table/interface";
import { SearchOptions } from "@table/components/Tools/interface";

export const optionsDefault: TableOptions = {
  headerFixed: false,
  setting: {
    show: false,
    storage: false
  },
  searchSetting: {
    show: false,
    storage: true,
    viewShow: false,
    isSearchRange: false,
    isFilter: true
  }
};

export const excludeFields = ["selection", "index"];

export const SORT_DESC = "DESC";

export const SORT_ASC = "ASC";

export const searchOptionsDefault: SearchOptions = {
  keyword: "",
  keywordRange: [],
  condition: [],
  sortFiled: "",
  sortTable: "",
  sortType: ""
};

export const logicList = [
  {
    label: "且",
    value: "AND"
  },
  {
    label: "或",
    value: "OR"
  }
];
